package cn.xorange.commons.file.configuration;

public class FileConstants {
    private FileConstants(){}

    /**
     * 默认的文件名最大长度 100
     */
    public static final int DEFAULT_FILE_NAME_LENGTH = 100;

    public static final int DEFAULT_AVATAR_MAX_SIZE = 500 * 1024*1024;
    public static final int DEFAULT_IMAGE_MAX_SIZE = 3 * 1024 * 1024;
    public static final int DEFAULT_MEDIA_MAX_SIZE = 8 * 1024 * 1024;
    public static final int DEFAULT_VIDEO_MAX_SIZE = 20 * 1024 * 1024;
    public static final int DEFAULT_FILE_MAX_SIZE = 50 * 1024 * 1024;

    /** 默认头像路径 */
    public static final String DEFAULT_AVATAR_PATH = "avatar";
    /** 默认缩略图路径 */
    public static final String DEFAULT_PREVIEW_PATH = "preview";
    /** 默认图片路径 */
    public static final String DEFAULT_IMAGE_PATH = "image";
    /** 默认音乐路径 */
    public static final String DEFAULT_MEDIA_PATH = "media";
    /** 默认视频路径 */
    public static final String DEFAULT_VIDEO_PATH = "video";
    public static final String DEFAULT_IMPORT_PATH = "import";
    public static final String DEFAULT_DOWNLOAD_PATH = "download";

    public static final String FILENAME_PATTERN = "[a-zA-Z0-9_\\-\\|\\.\\u4e00-\\u9fa5]+";
}
